package com.ruoyi.baselibrary.infotargetsystem.service.impl;

import java.util.List;

import com.ruoyi.baselibrary.infotargetsystem.domain.InfoTargetSystem;
import com.ruoyi.baselibrary.infotargetsystem.mapper.InfoTargetSystemMapper;
import com.ruoyi.baselibrary.infotargetsystem.service.IInfoTargetSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 指标体系Service业务层处理
 *
 * @author ruoyi
 * @date 2022-02-08
 */
@Service
public class InfoTargetSystemServiceImpl implements IInfoTargetSystemService {
    @Autowired
    private InfoTargetSystemMapper infoTargetSystemMapper;

    /**
     * 查询指标体系
     *
     * @param id 指标体系主键
     * @return 指标体系
     */
    @Override
    public InfoTargetSystem selectInfoTargetSystemById(Long id) {
        return infoTargetSystemMapper.selectInfoTargetSystemById(id);
    }

    /**
     * 查询指标体系列表
     *
     * @param infoTargetSystem 指标体系
     * @return 指标体系
     */
    @Override
    public List<InfoTargetSystem> selectInfoTargetSystemList(InfoTargetSystem infoTargetSystem) {
        return infoTargetSystemMapper.selectInfoTargetSystemList(infoTargetSystem);
    }

    /**
     * 新增指标体系
     *
     * @param infoTargetSystem 指标体系
     * @return 结果
     */
    @Override
    public int insertInfoTargetSystem(InfoTargetSystem infoTargetSystem) {
        return infoTargetSystemMapper.insertInfoTargetSystem(infoTargetSystem);
    }

    /**
     * 修改指标体系
     *
     * @param infoTargetSystem 指标体系
     * @return 结果
     */
    @Override
    public int updateInfoTargetSystem(InfoTargetSystem infoTargetSystem) {
        return infoTargetSystemMapper.updateInfoTargetSystem(infoTargetSystem);
    }

    /**
     * 批量删除指标体系
     *
     * @param ids 需要删除的指标体系主键
     * @return 结果
     */
    @Override
    public int deleteInfoTargetSystemByIds(Long[] ids) {
        return infoTargetSystemMapper.deleteInfoTargetSystemByIds(ids);
    }

    /**
     * 删除指标体系信息
     *
     * @param id 指标体系主键
     * @return 结果
     */
    @Override
    public int deleteInfoTargetSystemById(Long id) {
        return infoTargetSystemMapper.deleteInfoTargetSystemById(id);
    }


}
